import {
    createApp
} from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {
    createStore
} from 'vuex'

// 创建一个新的 store 实例
const store = createStore({
    state() {
        return {
            code: undefined
        }
    },
    mutations: {
        changeTrade(state, newValue) {
            state.code = newValue
        }
    }
})

const app = createApp(App)

app.use(router)
app.use(ElementPlus)
app.use(store)

app.mount('#app')